package com.justplay.mobilelocation.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.justplay.mobilelocation.R;
import com.justplay.mobilelocation.bean.ContactBean;

import java.util.List;

/**
 * Created by heyue on 2017/5/16.
 */

public class ContactsAdapter extends BaseQuickAdapter<ContactBean, BaseViewHolder> {
    public ContactsAdapter(@LayoutRes int layoutResId, @Nullable List<ContactBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ContactBean item) {
        helper.setText(R.id.tv_name, item.getUserName());
        helper.setText(R.id.tv_phone, item.getPhoneNumber());
    }
}
